in reply to Getting rid of first space?
Are you sure those spaces aren't being added somewhere else? The code you've pasted here doesn't add them (on linux anyway).