Check that string is a number before assuming default units