removing excess spacing after last letter