added test for empty string or null/undefined to removeFormat