Made fromString() a static method