Remove space from lastrow in a datatble

Hello @Vasavi,
Welcome to the Community!
If you are keeping data in DataTable you can refer to particular indexes in the rows and use some text operations on them like in this example: