Format input script now handles comments correctly