I'm afraid $text did not work. Does $1- in on TEXT and on INPUT retain /all/ the spaces?