handle multiple spaces in long presses properly