convert string to num, issues on ubuntu and centos 6...strange it worked on 7 and fedora just fine....