insert function args only if text following a cursor is space or EOL