support heading/tailing space, tab, cr/lb removal
fix php string as array bug