Write basic string search exercise