fixed bug where leading/trailing whitespace was significant for names