added split and join to remove possible spaces in tags