Fixed sytax errors by adding a space between ! and the statement.
(based on PR #1148)