Perlito5 - js - optimization - inline substr() when possible