Add constraint for special characters

Refs PR #2 @deniak
Refs PR #5 @salvamomo
Formatting and whitespace fixes

Refs PR #7 @cordoval