Ruby and Python String,Number and Array functions ported to js