added common methods for numbers and strings