Correction of tags with spaces