fix scan_model:replace_text
remove erl_syntax stuff from kernel, use stdlib