Properly calculate width of whitespace characters when text is justified