explicitly casting as string with to_st before greedy substitution with gsub