class Solution(object):
def makeGood(self, s):
"""
:type s: str
:rtype: str
"""
ls = len(s)
i = 1
while i < ls:
if abs(ord(s[i-1])-ord(s[i])) == 32:
s = s[:i-1]+s[i+1:]
ls = len(s)
i = 1
else:
i += 1
return s