# Checking Space Name Syntax

You may need to check the validity of a space name and return an error if the name is illegal or does not appear in a coordinate space tree. You can do this easily if the appropriate tree is available. You use the tree's VerifyName or LookUpName methods. However, if the tree is not available, you can use the CheckSpaceNameSyntax method to check the validity of a supplied space name.