StringSize: handle repeated whitespace and \r