Esteemed Forum Participants and Lurkers:===========================Adobe Acrobat 5.0 - Forms: Control Custom Validate ScriptI am an absolute newbie to JS, but am an otherwise fairly experienced old hacker in many languages. I have tested in MS VBA (Visual Basic for Applications - Excel) a function to validate user entered UPC codes in an Excel Cell. I'm attempting to move this into an Adobe Acrobat Form to validate the entry in a control. I have converted quite a bit of the code, thanks to the w3schools site, but here is my first dead end ...VBA:'Remove all whitespace from beginning and end of a string' leaves string with first and last characters as printable charactersmyString = Trim(myString)JS ... ???My sincere appreciation for helping me get started. Thank you for any and all comments, suggestions, and assistance in this effort.Blessings in abundance, all the best, and ENJOY!Art . . . Carlisle, PA . . . USA