Fixed: Made number stripping function generic