SyntaxQ
SyntaxQ["string"] returns True if the string corresponds to syntactically correct input for a single Wolfram Language expression, and returns False otherwise.
SyntaxQ["string",form] uses interpretation rules corresponding to the specified form.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.