Remove trailing spaces in robot scripts