filtered out repeat words and letters