added methods for finding next word