If $1 = Online, $left($1,1) would be O, $mid($1,2,-1) would be nlin and $right($1,1) would be e.