parse string to decimal