fix pattern for command from textArea