Remove repeated words in error message