distiguish between string and unicode objects