fixed bug that happened when you tried to change a patients number to a string containing things other than digits