Simplifying syntax of If..Else. in a function node

I got the solution here. now the table looks much better. no need for slicing to get same number of digits!