Fix serial number read
Use regex for resource string parsing