Attempts to parse the string into a double, returns null if parsing fails.
null
double? tryParseInputToDouble() { return double.tryParse(replaceAll(' ', '').replaceAll(',', '.')); }