string: add static to support private methods

Signed-off-by: George K. Thiruvathukal <gkt@cs.luc.edu>