Remove whitespace.
Use a map to store the transformed value.