create reverse function, and create form to reverse input of string