OW does not auto-correct serial number with a space at the beginning

When I edit equipment details, I accidentally insert a white space at the beginning of the text for serial number and hit “Save”.

The equipment’ serial number is then saved with a space at the beginning, which makes it impossible to search after the equipment if I do not put a space to serial number in search field.

Screenshots are taken in the Documents module: