Improved string rewriting in rules and added thickness