What is the actual string your trying to "use" ?

For example, a string of;

10mins.

Using code:

$remove(10mins.,mins.)

Will return, 10.

Eamonn.