string to number convertion updated to provide more useful information