stack function push create pop working for all type except string