plugins: std -- Rework string functions

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>