String (String featureHeader) { String[] lines = featureHeader.split("\n"); for (String line : lines) { line = line.trim(); if (line.length() == 0 || line.charAt(0) == '#' || line.charAt(0) == '@') { continue; } int i = featureHeader.indexOf(":"); if (i < 0) { continue; } return line; } return featureHeader; }