change the string parser to preserve trailing whitespace
add a mode in which onSubmit is called on every change