Mendix Substring Function In R