Added convenience setter for strings.