Removing Padded Value in Decrypted Message How to remove padded value in Decrypted Message?

I am using AES Algorithm.

Let's take this as the decrypted message:

"abcdefghijklmn  "


There is a 2 space in that decrypted message which is equivalent to 0x00.
how can I removed that value? during decryption to show the exact message before it was encrypted.

I am using ECB Mode, I know that ECB mode is not secured, but I only want to know how to remove padded value in my decrypted message.
How you remove padding after decryption depends on how padding was added before encryption.

Typically, we design padding methods so that it is easy to figure out exactly how much padding was added; see This article for an overview.

From your question, it sounds like the encryptor is doing zero padding (that is, adding zero bytes until the next block boundary); if you can assume that the message will never end in a zero byte, then it is easy to remove.  If you can't make that assumption, it sounds like you may need to switch to another padding method; the one in RFC5652 is one common method.