Is it worth checking for empty string before replace with regex? (version: 1)
Comparing performance of:trim and always replace vs trim and conditionally replace vs trim and conditionally replace with if vs always replace and trim vs conditionally trim and conditionally replace