This happens due to old data.
old data can contain trailing/leading whitespace which doesn't work well with code to find last SLE for serial no.