Rewrite replace words method, added extention method