Regex are great, but if you do not use them often, you quickly forget the syntax.
A version without regex:
my_string="\n\n\n first letter to be" s1=my_string.split(' ') s1[1]=s1[1].capitalize() new_string=' '.join(s1)