Use script that preserve cursor position after whitespaces are trimmed