checking if spaces are permitted after semicolons