Validate polygon syntax