Reduce boilerplate in API by internalizing &str -> String