Improved code for cleaning the value of Diagnostic-Code
Improved code