[TASK] add function to crop a string by words