Implemented getURLcontentFromString function