simplify sanitize() function
clean up spacing
Merge pull request #74 from bifek/cleanup

clean up spacing and bracing according to PSR-2
Merge pull request #75 from bifek/sanitize

simplify sanitize() function