Fixed bug where it wasn't printing the last word