lib: remove unused string functions

Signed-off-by: Viller Hsiao <villerhsiao@gmail.com>