The replace(".","") thing works, but it rus into problems with you get to something like 1.3b vs 1.3c Some developers have a different way of numbering their releases.