Extracting part of the line