Replace regex startswith with the start_with method to avoid regex escaping issues