Fix escaped quotation marks in GetStringType() and remove the direction option