Allow appending and prepending without quotes if and only if the string to be appended does not contain spaces.