refactor

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
add parsing input and prefix

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>