Remove non-digit values when making version comparisons