Fixing spaces and removing testing prints