Rename isSpace to treatAsSpace. Move it and the rounding hack function into