substr( $mask_input, $lastEnd, $start ) =~ tr[\x00-\xff][N];