new substring methods for version comparison