fixed strlcpy() and strlcat() usage in srvr_proto.c
added left trim and right trim functions