finish NICK function, but when program store the NICK string, it will store a string with \n. fix it next time