check if param from vector is string before doing strtolower