Add range to construct of curl adapter
Throw exception if reach the end of the string