String Theory and its Applications in Cosmology and Particle Physics