Stripping queryId by removing blanks and pipe chars