Split statements for checking for duplicate words

As per my interpretation of @plausibility's suggestion
Implemented debug info for DuplicateWordException

Message is subject to change format, but I predict the inputs will
remain the same.