fixes issue#6031 spelling errors

corrects the spelling errors listed in issue issue#6031 and a few others I found.