Fixed a bug with wrong return type of generated method to parse string
content.