Added constructor that takes a string as a parameter and converts it to the point.