const correctness
fix bugs of function [add_cstrs]