Detect and remove extraneous leading whitespace from multiline strings