def _preprocess_input_todo(p_todo_text):
            """
            Pre-processes user input when adding a task.

            It detects a priority mid-sentence and puts it at the start.
            """
            todo_text = re.sub(r'^(.+) (\([A-Z]\))(.*)$', r'\2 \1\3',
                               p_todo_text)

            return todo_text