ah ok. the 'p' implicitly converts it to a string, you can use carriers[name].to_s to do the same thing