Added polish string simplifier function