Made rewrite and createword more generic