correctly validate symbol length