fixing empty tags and split by ;,