Added fromString method