make adjustment for string values in calculation