fixed bug that removed spaces