[Refactoring] Slim up code logic
[Refactoring] protectionToChars(PROTKIND kind)
fix bug in protectionToBuffer()