added a simple string inplace reverse