Adjusted format to remove consecutive empty spaces