change the positions of words in string without affecting special characters. like ‘Hello world!’ TO ‘world Hello!’