Remove empty characters

I need a regexp to remove all all type of empty characters from a string and just leave numbers
so for example:
myString = " 1 ";
to return “1”