Add support for special characters and implemented %a