Contents:
This function checks whether a string contains a number or not. This is used to identify hidden layers in the model.