Use references, not values to avoid string copying.