remove strlen, strcat and system