refactor strings