Wall Street hits records on economic optimism; dollar falls