Take string slices
Use static strings
auto merge of #6174 : sanxiyn/rust/static-string, r=brson