Check if strings are paths on background thread