The following Rulesheet uses .endsWith to evaluate whether string1 ends with the characters ville and assigns a different value to string2 for each outcome.
SAMPLE RULETEST
A sample Ruletest provides string1 values for three examples. Input and Output panels are shown below.