removes white space and properly capitalizes the name