Fixing createWords function to handle line breaks