Just use StringUtils::EndsWith()