Fixed em, b, substitution functions (were always returning blank)