How did Tom Lehrer get his name?

Tom Lehrer was born Thomas Andrew Lehrer (nicknamed "Tom").