refactored to move optional param to the end
String type should be able to accept numbers and boolean