fix for tags with spaces is their value, probably wont work with spaces in the name, but will be close