added an edge case for string values