take substring