According to [this](http://www.cplusplus.com/reference/cctype/isprint/), isgraph might be more appropriate. Allowing spaces in the symbol name might be problematic.