Why didn't you follow the suggestion I gave with taking all the versions which start with a number? You wouldn't have to do all those extra checks.