reversse a stirng in place