edited mentry.c to prevent memory leak and convert surname and post code to lower case letters