Add method to check if a string only consist numbers
Incorporate changes