replaceAll empty string

replaceAll empty string

I am using the replaceAll inbuilt function and noticed I was getting errors when I put in empty strings.

Should the function return null and accept null values?