input = fixInputFormattingIfMalformed(input);
if (isMalformed(input)) input = fixInputFormatting(input);