Added checking for number in [action] (#) cases