[#1302] Remove whitespace before adding language to the list