include leading and trailing spaces in width calculation
Merge pull request #5 from juliangruber/trailing-space

include leading and trailing spaces in width calculation