Implemented check for valid characters in string sequences.
Typos in comments fixed.
Slightly modified regular expression, some test data added, formal style of code updated.
Merge pull request #143 from Nemrtvej/check-for-invalid-chars

Check for invalid characters in Documents