Substring Widget: Calculation condition is not working