Character conversion string

But I want to receive the entire string.

You have to decide where the string starts, and where the string ends.

This sort of problem comes up every other day here.
There are even libraries to do it.

You need to exercise your search fingers.