updated the regex for weight as well as changed ToInt32 to ToDouble in the code-behind file