indexes = set((0, 7, 12, 25))
chars = list('i like stackoverflow and python')
for i in indexes:
    chars[i] = chars[i].upper()
string = ''.join(chars)
string
change some lowercase letters to uppercase in string