Improved uppercase syntax check method