}
@Factory
public static StringStartsWith startsWithStripNewLines(final String expected) {
final String strippedExpected = StringExtensions.stripNewLines(expected);
return new StringStartsWith(strippedExpected) {
@Override
public boolean matchesSafely(final String actual) {
return super.matchesSafely(StringExtensions.stripNewLines(actual));
}