Refactoring Term (user CharSequence instead of array, remove rewrite source)