fixing spaces in tags