Implemented the sub_word() and rot_word() methods.