From: jjenning@... (jared l. jennings) Date: 2001-07-23T13:26:27+09:00 Subject: [ruby-talk:18325] capitalizing a string Say I've got a string p = 'fooBarPoit'. then p.capitalize == 'Foobarpoit'. I wish to have 'fooBarPoit' turn into 'FooBarPoit' and not 'Foobarpoit'. One way that works is (assuming that string was called p) p[0..0].upcase + p[1..p.length] but I wondered if there's a better way. -- It is impossible to enjoy idling thoroughly unless one has plenty of work to do. -- Jerome Klapka Jerome