Move textarea logic for replacing letter into appropriate method