on autoformat: String index out of range: 1023

at the moment i can't try, but it's not about that line.
if i delete only 1 or 2 of those lines, it still gives that error. i have to delete all the 3 lines!

i've done other projects with the degree sign.. in a thermometer project that sign is used many many times!