Solved str_str. But code is not elegant enough.