Common string functions for Erlang