fix script by suppressing whitespace at beginning of the lines