Optimize concatination code
optimize strlen and strcopy