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

[#1302] prove fix w/ unit test