add a space around the action in the prompt if it exists