TextArea code cleanup.