fix bug in synonyms whitespace trim