renamed searchstr to s for conciseness