settings: Add methods and a constructor to parse settings from strings