Made string conversion more efficient