stdlib: Strings, performance update (avoids using multiple references, limits operations when comparing)

Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>