Add functions pop_char and shift_char to StrBuf

Added functions pop_char and shift_char to StrBuf along with unit tests, using the same test cases as push_char.