Maybe change the regexp to use \s* and accept any number (including 0) spaces. Otherwise the setting has a brittle dependency on whitespace.