add string shared macros

I defined some macros to make readable like array.
- STR_SHARED_P
- STR_SET_SHARED_FLAG
- STR_UNSET_SHARED_FLAG