[FORWARD PORT] LPS-50773 add util method to remove leading chars