I used DamnDirtyApe's suggestion and it worked like a charm in getting the input. However, when it comes to querying UPS's website with the tracking number, Lynx passes back a bad request, probably because there's an invalid character still attached to the tracking number. How can I strip any unwanted characters out after the string has been chomped?