def trim(s) if s[0:3]=='\s+': print(s[0:3]) s = s.replace(s[0:3], '', 1) if s[len(s) - 3:]=='\s+': s = s.replace(s[len(s) - 3:], '') return s
def trim(s) if s[0:3]=='\s+': print(s[0:3]) s = s.replace(s[0:3], '', 1) if s[len(s) - 3:]=='\s+': s = s.replace(s[len(s) - 3:], '') return s