get_L_unit function

extract length unit