Add a Str factory method.