Vocabulary: "too short", not "too small".
Possibly reword this as "string must not be empty".
Also, this can probably stay an assert, it's inside an internal function so we're assuming all callers are SymPy functions and it's a bug inside of SymPy.