Separate formatting and processing of user input