r/shittyprogramming • • Nov 20 '18

How to Capitalize a String

word.ToCharArray()[0] = word.ToCharArray()[0].ToString().ToUpper().ToCharArray()[0];

69 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Nov 21 '18

Thanks! I knew I needed a way to get my arms through that thing!