refactor strings in the form