Make sure is string before search for 'factory|'