little refactoring for without-white-space-strings