Calculator can now handle newlines