handle symbol names with leading/trailing whitespace (#549)