I would not convert the value of a database column before using it in a filter unless everything else fails. The reason is that the conversion prevents any indexes to be used in the search (it is not sargable). But, anyway, there is no canonical function by which you could easily do this kind of Trim
.
I think the most straightforward way is to search by LIKE '42A %' OR LIKE '042A %'
.