python remove last 3 characters of a string,"foo = foo.replace(' ', '')[:-3].upper()"