greedy string