In a cell that has varying number of characters, how do you get rid of the number or letter on the right.

For instance: 10d needs to read 10, 109d needs to read 109, 5d needs to read 5.

Thanks in advance.