Refactoring Formatter

Also casts value to_s when setting.