From http://tex.stackexchange.com/questions/19922/where-are-the-necessary-places-to-be-appended-with-to-remove-unwanted-spaces