substr()

Issue
Function to return part of a string

Solution

This code will return the first 4 characters that are entered into a control

  [Control Name].substr(0,4);

This code will return the last 4 characters that are entered into a control

  [Control Name].substr([Control Name].length - 4, [Control Name].length);