prefix-suffix function implement
add hailu implementation