Add validate function

Adding 'validate' function allows developer to check tag before add it.
Adding separator option prevents from tag splitting if tag contains ','.