Changed in-document charset declaration

As per @Mause's reccommendation.
Changed error message for duplicate word