I want to replace only leading and trailing white space of a string by number of underscore.
Input String
" New Folder "
(Notes: There is one white space at front and two white spaces at the end of this string)
Output
My desire output string "_New Folder__"
(The output string has one underscore at the front and two underscore at the end.)