The cost of escaping strings