Configurational statistics of strings, fractals and polymer physics