Removes hardcoded testing input, and fixes space replacement