modify the bug of 'reverse words in a string': if input is 'hi  you', the output should be 'hi you'