numbers_only function

Detects whether a string contains only numbers or not.