checking for strings and converting to arrray when needed