tricky string problem