Modify parsePrice function.