Remove leading and trailing non char-numeric characters