used regex to allow tags to be sent without spaces inbetween each