Algebraic and Geometric Structures in String Backgrounds