Add char_before() method