constructo String[] to String...

mode added to several conditions
changed tests accordingly