Added constructor from string for shared preff