Fixed parsing bug with long strings