added replace, fixes #4
check for built-ins like True, False fixes #2