string fixes and card01031 implementation