left_right function

Left or Right N characters of a string