matchStringBlocks function

bool matchStringBlocks(
  1. String predefinedString,
  2. String input
)

Matches the provided strings By removing whitespaces and new lines

Implementation

bool matchStringBlocks(String predefinedString, String input) {
  String normalPredefinedString = normalizeString(predefinedString);
  String normalInput = normalizeString(input);

  return normalPredefinedString == normalInput;
}