Add trim_words() method with intentional bug