optimize: remove unnecessary strlen