Fixed only outputting the first word