Helper function for removing leading non-digit characters in strings.