[ moved to the correct forum ]
bm.name = s.slice(0, 1).toUpperCase() + s.slice(1);
bm.name = s.slice(0, 1).toUpperCase() + s.slice(1).toLowerCase();
depending on what you want.
Thanks so much! Almost gave up on somebody giving it a shot. Weekend here in S.A. so will try on Monday and see if it works.
Once again, thank you. Will let you if it was successful.
George - you rock.
I tried the second one and it worked like a bomb.
Thanks so much! You have saved me hours of work!