*/
private static ADataCommand stripLeadingWhitespaceAndNewline(ADataCommand data) {
if (data != null) {
String text = stripLeadingWhitespaceAndNewline(data.getData().getText());
if (text.isEmpty()) {
data.replaceBy(new ANoopCommand());
// Returning null just means we have chomped the whitespace to nothing.
data = null;
} else {
data.setData(new TData(text));
}