Modify function group_numerals()

You make this function more simple. There is 2 lines only in function.