fix trying to call replace() in number