Update common.php

edit function trim_separator
switch has to case named "both" 
last case should named 'right'
coder forgot that ^^
Merge pull request #45 from mshla2y/patch-1

common.php Fix a function