Added ! to allowed string characters.