Change LID from integer() to string()
Better handling of `spawn_opt' in output
Remove trailing spaces