added to-string function to revert query instance back to string
remove X from name