string parsing fixed