Fixed empty string bug in parsing character data