Remove whitespace before adding language to the list