added strip for scenarios with spaces in the header line