Adding syntax checking

Checks using regex string array.