Geometry of Words