take care of spaces/caps in tags kludge