Fix IgnoreWhitespace to handle leading/trailing.
Fix IgnoreWhitespace to handle leading/trailing.

@bug W-2105874@

@rev fabbott@

SalesforceSFDC/aura,TribeMedia/aura,lcnbala/aura,lhong375/aura,TribeMedia/aura,navyliu/aura,badlogicmanpreet/aura,igor-sfdc/aura,forcedotcom/aura,forcedotcom/aura,badlogicmanpreet/aura,lcnbala/aura,lhong375/aura,SalesforceSFDC/aura,forcedotcom/aura,madmax983/aura,SalesforceSFDC/aura,lhong375/aura,igor-sfdc/aura,madmax983/aura,madmax983/aura,TribeMedia/aura,navyliu/aura,TribeMedia/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,madmax983/aura,badlogicmanpreet/aura,madmax983/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,badlogicmanpreet/aura,lcnbala/aura,badlogicmanpreet/aura,igor-sfdc/aura,lcnbala/aura,DebalinaDey/AuraDevelopDeb,igor-sfdc/aura,lhong375/aura,igor-sfdc/aura,DebalinaDey/AuraDevelopDeb,forcedotcom/aura,DebalinaDey/AuraDevelopDeb,SalesforceSFDC/aura,madmax983/aura,lcnbala/aura,navyliu/aura,SalesforceSFDC/aura,navyliu/aura,SalesforceSFDC/aura,badlogicmanpreet/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,forcedotcom/aura,TribeMedia/aura,lcnbala/aura