Handle case of null/empty replacement