Bug fix for ttyload and delete extraneous spaces.