A Mathematical Introduction to String Theory: Variational Problems, Geometric and Probabilistic Methods