changed tagstring split to look out for spaces