updating to terminate simple strings on newlines