transform string to number in case receiver is a number