replace the last word