tidy string manipulation for sql
tidy whitespace
tidy sql handling for classification scheme template