Updated spacing and docs

update empty and preg_replace?