Symmetric functions, conjugacy classes and the flag variety