unifying string api and adding documentation